Integrand size = 20, antiderivative size = 475 \[ \int \frac {(c+d x)^2}{(a+b \coth (e+f x))^2} \, dx=-\frac {2 b^2 (c+d x)^2}{\left (a^2-b^2\right )^2 f}+\frac {2 b^2 (c+d x)^2}{(a-b) (a+b)^2 \left (a-b-(a+b) e^{2 e+2 f x}\right ) f}+\frac {(c+d x)^3}{3 (a-b)^2 d}+\frac {2 b^2 d (c+d x) \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^2}-\frac {2 b (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f}+\frac {2 b^2 (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f}+\frac {b^2 d^2 \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^3}-\frac {2 b d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^2}+\frac {2 b^2 d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^2}+\frac {b d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^3}-\frac {b^2 d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^3} \]
[Out]
Time = 1.22 (sec) , antiderivative size = 475, normalized size of antiderivative = 1.00, number of steps used = 24, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.550, Rules used = {3815, 2286, 2216, 2215, 2221, 2611, 2320, 6724, 2222, 2317, 2438} \[ \int \frac {(c+d x)^2}{(a+b \coth (e+f x))^2} \, dx=\frac {2 b^2 d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{f^2 \left (a^2-b^2\right )^2}+\frac {2 b^2 d (c+d x) \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{f^2 \left (a^2-b^2\right )^2}+\frac {2 b^2 (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{f \left (a^2-b^2\right )^2}-\frac {2 b^2 (c+d x)^2}{f \left (a^2-b^2\right )^2}+\frac {b^2 d^2 \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{f^3 \left (a^2-b^2\right )^2}-\frac {b^2 d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{f^3 \left (a^2-b^2\right )^2}+\frac {2 b^2 (c+d x)^2}{f (a-b) (a+b)^2 \left (-(a+b) e^{2 e+2 f x}+a-b\right )}-\frac {2 b d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{f^2 (a-b)^2 (a+b)}-\frac {2 b (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{f (a-b)^2 (a+b)}+\frac {(c+d x)^3}{3 d (a-b)^2}+\frac {b d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{f^3 (a-b)^2 (a+b)} \]
[In]
[Out]
Rule 2215
Rule 2216
Rule 2221
Rule 2222
Rule 2286
Rule 2317
Rule 2320
Rule 2438
Rule 2611
Rule 3815
Rule 6724
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {(c+d x)^2}{(a-b)^2}+\frac {4 b^2 e^{4 e+4 f x} (c+d x)^2}{(a-b)^2 \left (a \left (1-\frac {b}{a}\right )-a \left (1+\frac {b}{a}\right ) e^{2 e+2 f x}\right )^2}+\frac {4 b e^{2 e+2 f x} (c+d x)^2}{(a-b)^2 \left (a \left (1-\frac {b}{a}\right )-a \left (1+\frac {b}{a}\right ) e^{2 e+2 f x}\right )}\right ) \, dx \\ & = \frac {(c+d x)^3}{3 (a-b)^2 d}+\frac {(4 b) \int \frac {e^{2 e+2 f x} (c+d x)^2}{a \left (1-\frac {b}{a}\right )-a \left (1+\frac {b}{a}\right ) e^{2 e+2 f x}} \, dx}{(a-b)^2}+\frac {\left (4 b^2\right ) \int \frac {e^{4 e+4 f x} (c+d x)^2}{\left (a \left (1-\frac {b}{a}\right )-a \left (1+\frac {b}{a}\right ) e^{2 e+2 f x}\right )^2} \, dx}{(a-b)^2} \\ & = \frac {(c+d x)^3}{3 (a-b)^2 d}-\frac {2 b (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f}+\frac {\left (4 b^2\right ) \int \left (\frac {(c+d x)^2}{(a+b)^2}+\frac {(a-b)^2 (c+d x)^2}{(a+b)^2 \left (a-b-(a+b) e^{2 e+2 f x}\right )^2}+\frac {2 (-a+b) (c+d x)^2}{(a+b)^2 \left (a-b-(a+b) e^{2 e+2 f x}\right )}\right ) \, dx}{(a-b)^2}+\frac {(4 b d) \int (c+d x) \log \left (1-\frac {\left (1+\frac {b}{a}\right ) e^{2 e+2 f x}}{1-\frac {b}{a}}\right ) \, dx}{(a-b)^2 (a+b) f} \\ & = \frac {(c+d x)^3}{3 (a-b)^2 d}+\frac {4 b^2 (c+d x)^3}{3 \left (a^2-b^2\right )^2 d}-\frac {2 b (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f}-\frac {2 b d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^2}+\frac {\left (4 b^2\right ) \int \frac {(c+d x)^2}{\left (a-b+(-a-b) e^{2 e+2 f x}\right )^2} \, dx}{(a+b)^2}-\frac {\left (8 b^2\right ) \int \frac {(c+d x)^2}{a-b+(-a-b) e^{2 e+2 f x}} \, dx}{(a-b) (a+b)^2}+\frac {\left (2 b d^2\right ) \int \operatorname {PolyLog}\left (2,\frac {\left (1+\frac {b}{a}\right ) e^{2 e+2 f x}}{1-\frac {b}{a}}\right ) \, dx}{(a-b)^2 (a+b) f^2} \\ & = \frac {(c+d x)^3}{3 (a-b)^2 d}-\frac {4 b^2 (c+d x)^3}{3 \left (a^2-b^2\right )^2 d}-\frac {2 b (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f}-\frac {2 b d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^2}+\frac {\left (4 b^2\right ) \int \frac {(c+d x)^2}{a-b+(-a-b) e^{2 e+2 f x}} \, dx}{(a-b) (a+b)^2}-\frac {\left (8 b^2\right ) \int \frac {e^{2 e+2 f x} (c+d x)^2}{a-b+(-a-b) e^{2 e+2 f x}} \, dx}{(a-b)^2 (a+b)}+\frac {\left (4 b^2\right ) \int \frac {e^{2 e+2 f x} (c+d x)^2}{\left (a-b+(-a-b) e^{2 e+2 f x}\right )^2} \, dx}{a^2-b^2}+\frac {\left (b d^2\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (2,\frac {(a+b) x}{a-b}\right )}{x} \, dx,x,e^{2 e+2 f x}\right )}{(a-b)^2 (a+b) f^3} \\ & = \frac {2 b^2 (c+d x)^2}{(a-b) (a+b)^2 \left (a-b-(a+b) e^{2 e+2 f x}\right ) f}+\frac {(c+d x)^3}{3 (a-b)^2 d}-\frac {2 b (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f}+\frac {4 b^2 (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f}-\frac {2 b d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^2}+\frac {b d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^3}+\frac {\left (4 b^2\right ) \int \frac {e^{2 e+2 f x} (c+d x)^2}{a-b+(-a-b) e^{2 e+2 f x}} \, dx}{(a-b)^2 (a+b)}-\frac {\left (4 b^2 d\right ) \int \frac {c+d x}{a-b+(-a-b) e^{2 e+2 f x}} \, dx}{(a-b) (a+b)^2 f}-\frac {\left (8 b^2 d\right ) \int (c+d x) \log \left (1+\frac {(-a-b) e^{2 e+2 f x}}{a-b}\right ) \, dx}{\left (a^2-b^2\right )^2 f} \\ & = -\frac {2 b^2 (c+d x)^2}{\left (a^2-b^2\right )^2 f}+\frac {2 b^2 (c+d x)^2}{(a-b) (a+b)^2 \left (a-b-(a+b) e^{2 e+2 f x}\right ) f}+\frac {(c+d x)^3}{3 (a-b)^2 d}-\frac {2 b (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f}+\frac {2 b^2 (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f}-\frac {2 b d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^2}+\frac {4 b^2 d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^2}+\frac {b d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^3}-\frac {\left (4 b^2 d^2\right ) \int \operatorname {PolyLog}\left (2,-\frac {(-a-b) e^{2 e+2 f x}}{a-b}\right ) \, dx}{\left (a^2-b^2\right )^2 f^2}-\frac {\left (4 b^2 d\right ) \int \frac {e^{2 e+2 f x} (c+d x)}{a-b+(-a-b) e^{2 e+2 f x}} \, dx}{(a-b)^2 (a+b) f}+\frac {\left (4 b^2 d\right ) \int (c+d x) \log \left (1+\frac {(-a-b) e^{2 e+2 f x}}{a-b}\right ) \, dx}{\left (a^2-b^2\right )^2 f} \\ & = -\frac {2 b^2 (c+d x)^2}{\left (a^2-b^2\right )^2 f}+\frac {2 b^2 (c+d x)^2}{(a-b) (a+b)^2 \left (a-b-(a+b) e^{2 e+2 f x}\right ) f}+\frac {(c+d x)^3}{3 (a-b)^2 d}+\frac {2 b^2 d (c+d x) \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^2}-\frac {2 b (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f}+\frac {2 b^2 (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f}-\frac {2 b d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^2}+\frac {2 b^2 d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^2}+\frac {b d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^3}-\frac {\left (2 b^2 d^2\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (2,\frac {(a+b) x}{a-b}\right )}{x} \, dx,x,e^{2 e+2 f x}\right )}{\left (a^2-b^2\right )^2 f^3}-\frac {\left (2 b^2 d^2\right ) \int \log \left (1+\frac {(-a-b) e^{2 e+2 f x}}{a-b}\right ) \, dx}{\left (a^2-b^2\right )^2 f^2}+\frac {\left (2 b^2 d^2\right ) \int \operatorname {PolyLog}\left (2,-\frac {(-a-b) e^{2 e+2 f x}}{a-b}\right ) \, dx}{\left (a^2-b^2\right )^2 f^2} \\ & = -\frac {2 b^2 (c+d x)^2}{\left (a^2-b^2\right )^2 f}+\frac {2 b^2 (c+d x)^2}{(a-b) (a+b)^2 \left (a-b-(a+b) e^{2 e+2 f x}\right ) f}+\frac {(c+d x)^3}{3 (a-b)^2 d}+\frac {2 b^2 d (c+d x) \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^2}-\frac {2 b (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f}+\frac {2 b^2 (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f}-\frac {2 b d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^2}+\frac {2 b^2 d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^2}+\frac {b d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^3}-\frac {2 b^2 d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^3}-\frac {\left (b^2 d^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {(-a-b) x}{a-b}\right )}{x} \, dx,x,e^{2 e+2 f x}\right )}{\left (a^2-b^2\right )^2 f^3}+\frac {\left (b^2 d^2\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (2,\frac {(a+b) x}{a-b}\right )}{x} \, dx,x,e^{2 e+2 f x}\right )}{\left (a^2-b^2\right )^2 f^3} \\ & = -\frac {2 b^2 (c+d x)^2}{\left (a^2-b^2\right )^2 f}+\frac {2 b^2 (c+d x)^2}{(a-b) (a+b)^2 \left (a-b-(a+b) e^{2 e+2 f x}\right ) f}+\frac {(c+d x)^3}{3 (a-b)^2 d}+\frac {2 b^2 d (c+d x) \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^2}-\frac {2 b (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f}+\frac {2 b^2 (c+d x)^2 \log \left (1-\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f}+\frac {b^2 d^2 \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^3}-\frac {2 b d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^2}+\frac {2 b^2 d (c+d x) \operatorname {PolyLog}\left (2,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^2}+\frac {b d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{(a-b)^2 (a+b) f^3}-\frac {b^2 d^2 \operatorname {PolyLog}\left (3,\frac {(a+b) e^{2 e+2 f x}}{a-b}\right )}{\left (a^2-b^2\right )^2 f^3} \\ \end{align*}
Time = 5.06 (sec) , antiderivative size = 519, normalized size of antiderivative = 1.09 \[ \int \frac {(c+d x)^2}{(a+b \coth (e+f x))^2} \, dx=\frac {24 b c f^2 (-b d+a c f) x+\frac {24 (a-b) b c f^2 (-b d+a c f) x}{a \left (-1+e^{2 e}\right )+b \left (1+e^{2 e}\right )}+\frac {12 (a-b) b d f^2 (-b d+2 a c f) x^2}{a \left (-1+e^{2 e}\right )+b \left (1+e^{2 e}\right )}+\frac {8 a (a-b) b d^2 f^3 x^3}{a \left (-1+e^{2 e}\right )+b \left (1+e^{2 e}\right )}+12 b d f (b d-2 a c f) x \log \left (1+\frac {(-a+b) e^{-2 (e+f x)}}{a+b}\right )-12 a b d^2 f^2 x^2 \log \left (1+\frac {(-a+b) e^{-2 (e+f x)}}{a+b}\right )+12 b c f (b d-a c f) \log \left (a-b-(a+b) e^{2 (e+f x)}\right )-6 b d (b d-2 a c f) \operatorname {PolyLog}\left (2,\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )+6 a b d^2 \left (2 f x \operatorname {PolyLog}\left (2,\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )+\operatorname {PolyLog}\left (3,\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )\right )-\frac {(a-b) (a+b) f^2 \left (\left (a^2+b^2\right ) f x \left (3 c^2+3 c d x+d^2 x^2\right ) \cosh (f x)-\left (a^2-b^2\right ) f x \left (3 c^2+3 c d x+d^2 x^2\right ) \cosh (2 e+f x)+2 b \left (-3 b (c+d x)^2+a f x \left (3 c^2+3 c d x+d^2 x^2\right )\right ) \sinh (f x)\right )}{(b \cosh (e)+a \sinh (e)) (b \cosh (e+f x)+a \sinh (e+f x))}}{6 (a-b)^2 (a+b)^2 f^3} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1237\) vs. \(2(464)=928\).
Time = 0.50 (sec) , antiderivative size = 1238, normalized size of antiderivative = 2.61
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 3702 vs. \(2 (460) = 920\).
Time = 0.32 (sec) , antiderivative size = 3702, normalized size of antiderivative = 7.79 \[ \int \frac {(c+d x)^2}{(a+b \coth (e+f x))^2} \, dx=\text {Too large to display} \]
[In]
[Out]
Exception generated. \[ \int \frac {(c+d x)^2}{(a+b \coth (e+f x))^2} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
none
Time = 0.51 (sec) , antiderivative size = 751, normalized size of antiderivative = 1.58 \[ \int \frac {(c+d x)^2}{(a+b \coth (e+f x))^2} \, dx=-\frac {4 \, b^{2} c d f x}{a^{4} f^{2} - 2 \, a^{2} b^{2} f^{2} + b^{4} f^{2}} - \frac {{\left (2 \, f^{2} x^{2} \log \left (-\frac {{\left (a e^{\left (2 \, e\right )} + b e^{\left (2 \, e\right )}\right )} e^{\left (2 \, f x\right )}}{a - b} + 1\right ) + 2 \, f x {\rm Li}_2\left (\frac {{\left (a e^{\left (2 \, e\right )} + b e^{\left (2 \, e\right )}\right )} e^{\left (2 \, f x\right )}}{a - b}\right ) - {\rm Li}_{3}(\frac {{\left (a e^{\left (2 \, e\right )} + b e^{\left (2 \, e\right )}\right )} e^{\left (2 \, f x\right )}}{a - b})\right )} a b d^{2}}{a^{4} f^{3} - 2 \, a^{2} b^{2} f^{3} + b^{4} f^{3}} + \frac {2 \, b^{2} c d \log \left ({\left (a e^{\left (2 \, e\right )} + b e^{\left (2 \, e\right )}\right )} e^{\left (2 \, f x\right )} - a + b\right )}{a^{4} f^{2} - 2 \, a^{2} b^{2} f^{2} + b^{4} f^{2}} - c^{2} {\left (\frac {2 \, a b \log \left (-{\left (a - b\right )} e^{\left (-2 \, f x - 2 \, e\right )} + a + b\right )}{{\left (a^{4} - 2 \, a^{2} b^{2} + b^{4}\right )} f} + \frac {2 \, b^{2}}{{\left (a^{4} - 2 \, a^{2} b^{2} + b^{4} - {\left (a^{4} - 2 \, a^{3} b + 2 \, a b^{3} - b^{4}\right )} e^{\left (-2 \, f x - 2 \, e\right )}\right )} f} - \frac {f x + e}{{\left (a^{2} + 2 \, a b + b^{2}\right )} f}\right )} - \frac {{\left (2 \, a b c d f - b^{2} d^{2}\right )} {\left (2 \, f x \log \left (-\frac {{\left (a e^{\left (2 \, e\right )} + b e^{\left (2 \, e\right )}\right )} e^{\left (2 \, f x\right )}}{a - b} + 1\right ) + {\rm Li}_2\left (\frac {{\left (a e^{\left (2 \, e\right )} + b e^{\left (2 \, e\right )}\right )} e^{\left (2 \, f x\right )}}{a - b}\right )\right )}}{a^{4} f^{3} - 2 \, a^{2} b^{2} f^{3} + b^{4} f^{3}} + \frac {2 \, {\left (2 \, a b d^{2} f^{3} x^{3} + 3 \, {\left (2 \, a b c d f - b^{2} d^{2}\right )} f^{2} x^{2}\right )}}{3 \, {\left (a^{4} f^{3} - 2 \, a^{2} b^{2} f^{3} + b^{4} f^{3}\right )}} + \frac {12 \, b^{2} c d x + {\left (a^{2} d^{2} f - 2 \, a b d^{2} f + b^{2} d^{2} f\right )} x^{3} + 3 \, {\left (a^{2} c d f - 2 \, a b c d f + {\left (c d f + 2 \, d^{2}\right )} b^{2}\right )} x^{2} - {\left ({\left (a^{2} d^{2} f e^{\left (2 \, e\right )} - b^{2} d^{2} f e^{\left (2 \, e\right )}\right )} x^{3} + 3 \, {\left (a^{2} c d f e^{\left (2 \, e\right )} - b^{2} c d f e^{\left (2 \, e\right )}\right )} x^{2}\right )} e^{\left (2 \, f x\right )}}{3 \, {\left (a^{4} f - 2 \, a^{2} b^{2} f + b^{4} f - {\left (a^{4} f e^{\left (2 \, e\right )} + 2 \, a^{3} b f e^{\left (2 \, e\right )} - 2 \, a b^{3} f e^{\left (2 \, e\right )} - b^{4} f e^{\left (2 \, e\right )}\right )} e^{\left (2 \, f x\right )}\right )}} \]
[In]
[Out]
\[ \int \frac {(c+d x)^2}{(a+b \coth (e+f x))^2} \, dx=\int { \frac {{\left (d x + c\right )}^{2}}{{\left (b \coth \left (f x + e\right ) + a\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(c+d x)^2}{(a+b \coth (e+f x))^2} \, dx=\int \frac {{\left (c+d\,x\right )}^2}{{\left (a+b\,\mathrm {coth}\left (e+f\,x\right )\right )}^2} \,d x \]
[In]
[Out]